package indi.jp.project.core.service;

import indi.jp.project.core.entity.JsonResult;
import indi.jp.project.core.entity.Permission;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

public interface PermissionService {

    Map<String, Object> queryGrid(Permission entity) throws SQLException;

    JsonResult save(Permission entity) throws SQLException;

    int deleteById(String id) throws SQLException;

    JsonResult queryPermissions();

    void savePermissions(Map<String, Object> map) throws SQLException;

    JsonResult queryRolePermissions(String roleId);
}
